﻿package cn.antscript.airCMS.data.singleData 
{
	import cn.antscript.airCMS.data.singleData.AbstractData;
	
	/**
	 * ...
	 * @author 
	 */
	public class ImgData extends AbstractData
	{
		public var url:String;
		public var thumb:String;
		public var fixed:Boolean;
		public var width:int;
		public var height:int;
		
		public function ImgData(id_:String,label_:String, txt_:String, url_:String, timestamp_:String,thumb_:String,
								fixed_:Boolean = false, width_:int = 0,height_:int=0 )  
		{
			this.id = id_;
			this.label = label_;
			this.txt = txt_;
			this.timestamp = timestamp_;
			this.url = url_;
			this.thumb = thumb_;
			this.fixed = fixed_;
			if (fixed) {				
				this.width = width_;
				this.height = height_;
			}
			
			table = "img";
		}
		
	}

}